
import Vue from 'vue'
import Vuex from 'vuex'
import VuexPersistence from 'vuex-persist'
import * as modules from './modules'
//持久化
const dataPersistence = new VuexPersistence({
  storage: window.localStorage
})
Vue.use(Vuex)
export default new Vuex.Store({
  modules,
  plugins: [dataPersistence.plugin]
})
